<template>
  <div  class="app-container2">
    <div  style="margin-bottom: 24px">
      <div  style="display: flex; justify-content: space-between">
        <div  style="display: flex; align-items: center">
          <div >筛选条件：</div>
        </div>
        <el-button
          :icon="activeName == 1 ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
          @click="activeName = activeName == 1 ? '0' : '1'"
          plain
          >{{ activeName == 1 ? "收起" : "展开" }}筛选</el-button
        >
      </div>
      <el-collapse v-model="activeName" accordion style="margin-top: 20px">
        <el-collapse-item title="" name="1">
          <el-form
            ref="form"
            :model="ruleForm"
            label-width="100px"
            style="padding-top: 20px"
          >
            <el-form-item label="组织类别:">
              <el-checkbox-group v-model="ruleForm.type">
                <el-checkbox label="党委" name="type"></el-checkbox>
                <el-checkbox label="党总支部" name="type"></el-checkbox>
                <el-checkbox label="党支部" name="type"></el-checkbox>
                <el-checkbox label="临时党支部" name="type"></el-checkbox>
                <el-checkbox label="联合党支部" name="type"></el-checkbox>
                <el-checkbox label="党小组" name="type"></el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="荣誉情况:">
              <el-checkbox-group v-model="ruleForm.type">
                <el-checkbox label="全国先进党组织" name="type"></el-checkbox>
                <el-checkbox
                  label="部、委级先进党组织"
                  name="type"
                ></el-checkbox>
                <el-checkbox
                  label="省（区、市）级先进党组织"
                  name="type"
                ></el-checkbox>
                <el-checkbox
                  label="地（市、州）级先进党组织"
                  name="type"
                ></el-checkbox>
                <el-checkbox
                  label="县（市、区）级先进党组织"
                  name="type"
                ></el-checkbox>
                <el-checkbox
                  label="本系统级先进党组织"
                  name="type"
                ></el-checkbox>
                <el-checkbox
                  label="（其他）先进党组织"
                  name="type"
                ></el-checkbox>
                <el-checkbox label="基层先进党组织" name="type"></el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="单位类别:">
              <el-checkbox-group v-model="ruleForm.type">
                <el-checkbox label="城市街道" name="type"></el-checkbox>
                <el-checkbox
                  label="城市社区（居委会）"
                  name="type"
                ></el-checkbox>
                <el-checkbox label="乡镇" name="type"></el-checkbox>
                <el-checkbox
                  label="农村社区（居委会）"
                  name="type"
                ></el-checkbox>
                <el-checkbox label="行政村" name="type"></el-checkbox>
                <el-checkbox label="国有经济控制" name="type"></el-checkbox>
                <el-checkbox label="集体经济控制" name="type"></el-checkbox>
                <el-checkbox label="非公有经济控制" name="type"></el-checkbox>
                <el-checkbox label="事业单位" name="type"></el-checkbox>
                <el-checkbox label="机关" name="type"></el-checkbox>
                <el-checkbox label="社会组织" name="type"></el-checkbox>
                <el-checkbox label="其他" name="type"></el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="所属组织:">
              <el-input v-model="ruleForm.name"></el-input>
            </el-form-item>
            <el-form-item label="换届情况:">
              <el-checkbox-group v-model="ruleForm.type">
                <el-checkbox label="本年换届" name="type"></el-checkbox>
                <el-checkbox label="任届期满未换届" name="type"></el-checkbox>
                <el-checkbox label="一年内任届期将满" name="type"></el-checkbox>
                <el-checkbox label="超任期两年至五年" name="type"></el-checkbox>
                <el-checkbox label="超任期五年以上" name="type"></el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="其他:">
              <el-checkbox-group v-model="ruleForm.type">
                <el-checkbox label="撤销组织" name="type"></el-checkbox>
                <el-checkbox label="改建或更名组织" name="type"></el-checkbox>
              </el-checkbox-group>
            </el-form-item>
          </el-form>
        </el-collapse-item>
      </el-collapse>
    </div>
    <div style="margin-bottom: 24px; display: flex; justify-content: space-between">
      <div  style="display: flex; align-items: center">
        <el-button
          type="danger"
          icon="el-icon-download"
          style="margin-right: 12px"
          >导出</el-button
        >
      </div>
      <div  style="display: flex; align-items: center">
        <el-button @click="submit">重置</el-button>
        <el-button type="danger">查询</el-button>
      </div>
    </div>
    <el-table :data="list" style="width: 100%" v-loading="loading">
      <el-table-column prop="date" label="序号" align="center">
      </el-table-column>
      <el-table-column prop="date" label="组织全称" align="center">
      </el-table-column>
      <el-table-column label="党组织信息" align="center">
        <el-table-column prop="date" label="组织类别" align="center">
        </el-table-column>
        <el-table-column prop="date" label="党组织所在单位情况" align="center">
        </el-table-column>
        <el-table-column prop="date" label="党组织书记" align="center">
        </el-table-column>
        <el-table-column prop="date" label="联系人" align="center">
        </el-table-column>
        <el-table-column prop="date" label="联系电话" align="center">
        </el-table-column>
      </el-table-column>

      <el-table-column label="单位信息" align="center">
        <el-table-column prop="date" label="单位名称" align="center">
      </el-table-column>
      <el-table-column prop="date" label="单位类别" align="center">
      </el-table-column>
      <el-table-column prop="date" label="单位建立党组织情况" align="center">
      </el-table-column>
      </el-table-column>

    </el-table>
		<pagination
			v-show="ruleForm.total > 0"
			:total="ruleForm.total"
			:page.sync="ruleForm.pageNum"
			:limit.sync="ruleForm.pageSize"
			@pagination="() => {}"
		/>
    <el-dialog title="提示" :visible.sync="dialogVisible" width="500px">
      <el-form
        :model="ruleForm"
        :rules="rules"
        ref="ruleForm"
        label-width="100px"
        class="demo-ruleForm"
      >
        <el-form-item label="活动名称" prop="name">
          <el-input v-model="ruleForm.name"></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
// import { } from "@/api/card/home";
export default {
  data() {
    return {
      loading: false,
      value1: "",
      activeName: "1",
      dialogVisible: false,
      list: [],
      ruleForm: {
        pageNum: 1,
        pageSize: 10,
        total: 0,
        type: [],
      },
      rules: {
        name: [{ required: true, message: "请输入活动名称", trigger: "blur" }],
      },
    };
  },
  methods: {
    submit() {
      
    },
    //切换分页
    handleCurrentChange(val) {
      this.loading = true;
      this.ruleForm.pageNum = val;
    },
    //切换总条数
    handleSizeChange(val) {
      this.loading = true;
      this.ruleForm.pageSize = val;
    },
  },
  created() {},
};
</script>

<style lang="scss" scoped>
::v-deep {
  .el-collapse-item__header {
    display: none;
  }
}
::v-deep .el-form-item {
  margin-bottom: 0;
}
</style>
